StringScanner.SkipOverDigit Function
Syntax
SkipOverDigit as n()
Arguments
- Chars_Skipped
The number of characters the offset has been moved.
Description
Skip over a sequence of digits (0-9). Returns number of characters skipped.
Discussion
The <StringScanner>.SkipOverCharacter() function moves the offset to the next character that is not a digit and returns the number of characters that the offset has moved. The offset does not move if it is already pointing to a character that is not a digit.
Example
dim scanner as P dim txt as C txt = <<%text% 1234 is wonderful prose written by a technical writer of note. %text% scanner = stringscanner.create(txt) ? scanner.skipoverdigit() = 4 ? scanner.GetToOffset() = "1234" ? scanner.getremainder() =is wonderful prose written by a technical writer of note.
See Also